package com.ruoyi.novel.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 邀请链接对象 a_invitation
 *
 * @author å¼ ä¸
 * @date 2025-06-12
 */
@TableName("a_invitation")
public class Invitation  extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Integer id;

    /** 用户 */
    @Excel(name = "用户")
    private Integer userId;

    /** 邀请码 */
    @Excel(name = "邀请码")
    private String code;

    /** 页面链接 */
    @Excel(name = "页面链接")
    private String url;

    /** 图片 */
    @Excel(name = "图片")
    private String image;

    /** 下载链接 */
    @Excel(name = "下载链接")
    private String downloadLink;

    /** 状态 */
    @Excel(name = "状态")
    private Integer state;

    private String nickName;

    public void setId(Integer id)
    {
        this.id = id;
    }

    public Integer getId()
    {
        return id;
    }
    public void setUserId(Integer userId)
    {
        this.userId = userId;
    }

    public Integer getUserId()
    {
        return userId;
    }
    public void setCode(String code)
    {
        this.code = code;
    }

    public String getCode()
    {
        return code;
    }
    public void setUrl(String url)
    {
        this.url = url;
    }

    public String getUrl()
    {
        return url;
    }
    public void setImage(String image)
    {
        this.image = image;
    }

    public String getImage()
    {
        return image;
    }
    public void setDownloadLink(String downloadLink)
    {
        this.downloadLink = downloadLink;
    }

    public String getDownloadLink()
    {
        return downloadLink;
    }
    public void setState(Integer state)
    {
        this.state = state;
    }

    public Integer getState()
    {
        return state;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("code", getCode())
                .append("url", getUrl())
                .append("image", getImage())
                .append("downloadLink", getDownloadLink())
                .append("state", getState())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
